part of common_lib_plugin;

extension ColorExtension on Color {
  TextStyle textStyle({FontWeight? fontWeight, double? fontHeight, double? fontSize}) {
    return TextStyle(fontWeight: fontWeight, fontSize: fontSize ?? 13.sp, height: fontHeight ?? (18 / 13), color: this);
  }

  TextStyle textStyle7({FontWeight? fontWeight, double? fontHeight}) {
    return TextStyle(fontWeight: fontWeight, fontSize: 7.sp, height: fontHeight ?? (10 / 7), color: this);
  }

  TextStyle textStyle8({FontWeight? fontWeight, double? fontHeight}) {
    return TextStyle(fontWeight: fontWeight, fontSize: 8.sp, height: fontHeight ?? (12 / 8), color: this);
  }

  TextStyle textStyle9({FontWeight? fontWeight, double? fontHeight}) {
    return TextStyle(fontWeight: fontWeight, fontSize: 9.sp, height: fontHeight ?? (13 / 9), color: this);
  }

  TextStyle textStyle10({FontWeight? fontWeight, double? fontHeight}) {
    return TextStyle(fontWeight: fontWeight, fontSize: 10.sp, height: fontHeight ?? (14 / 10), color: this);
  }

  TextStyle textStyle11({FontWeight? fontWeight, double? fontHeight}) {
    return TextStyle(fontWeight: fontWeight, fontSize: 11.sp, height: fontHeight ?? (16 / 11), color: this);
  }

  TextStyle textStyle12({FontWeight? fontWeight, double? fontHeight}) {
    return TextStyle(fontWeight: fontWeight, fontSize: 12.sp, height: fontHeight ?? (17 / 12), color: this);
  }

  TextStyle textStyle13({FontWeight? fontWeight, double? fontHeight}) {
    return TextStyle(fontWeight: fontWeight, fontSize: 13.sp, height: fontHeight ?? (18 / 13), color: this);
  }

  TextStyle textStyle14({FontWeight? fontWeight, double? fontHeight}) {
    return TextStyle(fontWeight: fontWeight, fontSize: 14.sp, height: fontHeight ?? (20 / 14), color: this);
  }

  TextStyle textStyle15({FontWeight? fontWeight, double? fontHeight}) {
    return TextStyle(fontWeight: fontWeight, fontSize: 15.sp, height: fontHeight ?? (21 / 15), color: this);
  }

  TextStyle textStyle16({FontWeight? fontWeight, double? fontHeight}) {
    return TextStyle(fontWeight: fontWeight, fontSize: 16.sp, height: fontHeight ?? (22 / 16), color: this);
  }

  TextStyle textStyle17({FontWeight? fontWeight, double? fontHeight}) {
    return TextStyle(fontWeight: fontWeight, fontSize: 17.sp, height: fontHeight ?? (24 / 17), color: this);
  }

  TextStyle textStyle18({FontWeight? fontWeight, double? fontHeight}) {
    return TextStyle(fontWeight: fontWeight, fontSize: 18.sp, height: fontHeight ?? (25 / 18), color: this);
  }

  TextStyle textStyle19({FontWeight? fontWeight, double? fontHeight}) {
    return TextStyle(fontWeight: fontWeight, fontSize: 19.sp, height: fontHeight ?? (27 / 19), color: this);
  }

  TextStyle textStyle20({FontWeight? fontWeight, double? fontHeight}) {
    return TextStyle(fontWeight: fontWeight, fontSize: 20.sp, height: fontHeight ?? (28 / 20), color: this);
  }

  TextStyle textStyle21({FontWeight? fontWeight, double? fontHeight}) {
    return TextStyle(fontWeight: fontWeight, fontSize: 21.sp, height: fontHeight ?? (29 / 21), color: this);
  }

  TextStyle textStyle11w({FontWeight? fontWeight, double? fontHeight}) {
    return TextStyle(fontWeight: fontWeight, fontSize: 11.w, height: fontHeight ?? (16 / 11), color: this);
  }

  TextStyle textStyle12w({FontWeight? fontWeight, double? fontHeight}) {
    return TextStyle(fontWeight: fontWeight, fontSize: 12.w, height: fontHeight ?? (17 / 12), color: this);
  }

  TextStyle textStyle13w({FontWeight? fontWeight, double? fontHeight}) {
    return TextStyle(fontWeight: fontWeight, fontSize: 13.w, height: fontHeight ?? (18 / 13), color: this);
  }

  TextStyle textStyle14w({FontWeight? fontWeight, double? fontHeight}) {
    return TextStyle(fontWeight: fontWeight, fontSize: 14.w, height: fontHeight ?? (20 / 14), color: this);
  }

  TextStyle textStyle15w({FontWeight? fontWeight, double? fontHeight}) {
    return TextStyle(fontWeight: fontWeight, fontSize: 15.w, height: fontHeight ?? (21 / 15), color: this);
  }

  TextStyle textStyle16w({FontWeight? fontWeight, double? fontHeight}) {
    return TextStyle(fontWeight: fontWeight, fontSize: 16.w, height: fontHeight ?? (22 / 16), color: this);
  }

  TextStyle textStyle17w({FontWeight? fontWeight, double? fontHeight}) {
    return TextStyle(fontWeight: fontWeight, fontSize: 17.w, height: fontHeight ?? (24 / 17), color: this);
  }

  TextStyle textStyle18w({FontWeight? fontWeight, double? fontHeight}) {
    return TextStyle(fontWeight: fontWeight, fontSize: 18.w, height: fontHeight ?? (25 / 18), color: this);
  }

  TextStyle textStyle19w({FontWeight? fontWeight, double? fontHeight}) {
    return TextStyle(fontWeight: fontWeight, fontSize: 19.w, height: fontHeight ?? (27 / 19), color: this);
  }

  TextStyle textStyle20w({FontWeight? fontWeight, double? fontHeight}) {
    return TextStyle(fontWeight: fontWeight, fontSize: 20.w, height: fontHeight ?? (28 / 20), color: this);
  }

  TextStyle textStyle21w({FontWeight? fontWeight, double? fontHeight}) {
    return TextStyle(fontWeight: fontWeight, fontSize: 21.w, height: fontHeight ?? (29 / 21), color: this);
  }

  Border border({double? width, double strokeAlign = BorderSide.strokeAlignInside}) {
    return Border.all(color: this, width: width ?? 1.w, strokeAlign: strokeAlign);
  }
}
